<template>
  <div>
    <h2>学生姓名:{{ name | myslice }}</h2>
    <h2>学生性别:{{ address }}</h2>
    <button @click="test">点我hello</button>
  </div>
</template>

<script>
export default {
  name: "School",
  data() {
    return {
      name: "黑马asdasda",
      address: "西安",
    };
  },
  methods: {
    test() {
      this.hello();
    },
  },
};
</script>
